<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
</head>
<body>
  <form action="/manager/filelistadd" enctype="multipart/form-data" method="post">
    <div><label>标题:</label></div>
    <div><input type="text" name="title"/></div>
    <div><label>描述:</label></div>
    <div><textarea name="desc"></textarea></div>
    <div><label>选择文件:</label></div>
    <div><input type="file" name="file"/></div>
    <div><input type="submit" value="Submit"></div>
  </form>
  {% for file in lists %}<div>
    <p><a href="/file?id={{ file.key }}">{% if file.isimage %}<img src="/file?id={{ file.key }}&amp;type=thumb"/>{% else %}<img src="/assets/images/file-icon-64.png"/>{% endif %} {{ file.title }}</a></p>
    <div>{{ file.desc }}</div>
  </div>{% endfor %}
</body>
</html>